|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.bidding.BidDetails
public class BidDetails
The BidDetails class is used to store a bid with it's corresponding utility and time it was offered. In this way constant re-computation of the utility values is avoided.
| Constructor Summary | |
|---|---|
BidDetails(Bid bid,
double myUndiscountedUtil)
Creates a BidDetails-object which stores a bid with it's corresponding utility. |
|
BidDetails(Bid bid,
double myUndiscountedUtil,
double time)
Creates a BidDetails-object which stores a bid with it's corresponding utility and the time it was offered. |
|
| Method Summary | |
|---|---|
int |
compareTo(BidDetails other)
A comparator for BidDetails which order the bids in reverse natural order of utility. |
boolean |
equals(java.lang.Object obj)
|
Bid |
getBid()
Returns the bid. |
double |
getMyUndiscountedUtil()
Returns the undiscounted utility of the bid as supplied in the constructor. |
double |
getTime()
Return the time at which this bid was offered. |
int |
hashCode()
|
void |
setBid(Bid bid)
Set the bid. |
void |
setMyUndiscountedUtil(double utility)
Set the undiscounted utility of the bid. |
void |
setTime(double time)
Set the time at which this bid was offered. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BidDetails(Bid bid,
double myUndiscountedUtil)
bid - of an agentmyUndiscountedUtil - utility of the bid
public BidDetails(Bid bid,
double myUndiscountedUtil,
double time)
bid - of an agentmyUndiscountedUtil - of the bidtime - of offering| Method Detail |
|---|
public Bid getBid()
public void setBid(Bid bid)
bid - to be set in this object.public double getMyUndiscountedUtil()
public void setMyUndiscountedUtil(double utility)
utility - of the bid.public double getTime()
public void setTime(double time)
time - of offering.public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(BidDetails other)
compareTo in interface java.lang.Comparable<BidDetails>other - bid to which this bid is compared.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to which this object is compared.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||